package com.yunmai.library.db;

import java.sql.SQLException;
import java.util.List;

/**
 * 定义数据库操作方法
 *
 * @author liyi
 *         create at 2018/3/26
 **/
public interface Call {

    <T> List<T> query(String sql) throws SQLException;

    <T> boolean insert(T t) throws SQLException;

    <T> boolean update(T t) throws SQLException;

    <T> boolean delete(T t) throws SQLException;

    <T> int count() throws SQLException;

}
